package com.springboot.common.lock;

/**
 * 抽象锁
 *
 * @author supu
 * @date 2019-03-22 11:12
 **/
public abstract class AbstractLock implements Lock {
    private static final String ROOT_LOCK_PATH = "/lock";
    protected final String path;

    public AbstractLock(String path) {
        this.path = ROOT_LOCK_PATH.concat(path.startsWith("/") ? path : "/".concat(path));
    }
}
